import greenfoot.*;  // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)

/**
 * Clase Corazon
 * 
 * @author (Gerardo Antonio Hernandez & Christian Israel Rodriguez Ahumada)
 * @version (29.06.2013)
 */
public class Corazon extends Item
{
    /**
     * Act - do whatever the Corazon wants to do. This method is called whenever
     * the 'Act' or 'Run' button gets pressed in the environment.
     */
    
    /**
     * AUMENTA VIDAS
     */
    public void agregaBonus()
    {
        Actor a=getOneIntersectingObject(Heroe.class);
        
            ((Heroe)a).aumentaVidas();
        
    }
}
